Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function Match (Of T,TResult)( _ ByVal item As T, _ ByVal fallbackValue As TResult _ ) As FunctionalExtensions.MatchBlock(Of T,TResult) |
C# | |
---|---|
public static FunctionalExtensions.MatchBlock<T,TResult> Match<T,TResult>( T item, TResult fallbackValue ) |
Parameters
- item
- fallbackValue
- The value to be returned if all patterns failed to match.
Type Parameters
- T
- TResult
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2